﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;

namespace bmapi.Controllers
{
    public class CADMarkController : CADApplyController
    {
        [HttpPost, Route("cadMark/Apply")]
        public string Apply(string id)
        {
            //id实际是token
            int uid = GetCrrentIDByToken();            

            if (0 == uid)
                return ReturnError(201, "不合法的用户");
            AddTask(37, 0);
            return ReturnOK(uid, 47, "排料" + uid.ToString());
        }
    }
}
